{
  "properties" : { },
  "id" : "848d8b028797421f9722feb73c56e494",
  "script" : null,
  "groupId" : "c4dd1f80725a4e8087f5e20ec2ade951",
  "name" : "创建文件夹",
  "createTime" : null,
  "updateTime" : 1667963493517,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/mkdirs",
  "description" : null,
  "returnType" : null,
  "mappingPath" : null,
  "parameters" : [ {
    "name" : "body",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : "java.lang.Object",
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }, {
    "name" : "path",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : "java.lang.String",
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ]
}
================================
//导入java.io.File包
import java.io.File;
//读取上传文件根目录
import '@/evn/fileRootPath' as fileRootPath;
//最终的文件目录
var filePath = fileRootPath() + path;

File file = new File(filePath);
//如果没有此文件夹，则创建
if (file.isDirectory()) {
    System.out.println("添加失败,目录已存在");
    return false;
} else {
    file.mkdirs();
    System.out.println("新增文件夹:" + path)
    System.out.println("地址:" + filePath)
    System.out.println("创建人:" + body.createBy)
    System.out.println("创建时间:" + body.createDate)
    return true;
}